home *** CD-ROM | disk | FTP | other *** search
/ PC User 2003 May / Disc 2 / PCU0503CD2.iso / Crystal / Samples / CPP / 32bit / Mycall / MYCALLDC.H < prev    next >
Encoding:
C/C++ Source or Header  |  1998-02-18  |  2.5 KB  |  78 lines

  1. // MYCALLDoc.h : interface of the CMYCALLDoc class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(_cmycalldoc_)
  5. #define _cmycalldoc_
  6. #include "../../peplus.h"
  7. #include "../../crpe.h"
  8. #include <fstream.h>
  9. class CMYCALLDoc : public CDocument
  10. {
  11. protected: // create from serialization only
  12.     afx_msg void OnStatusUpdate(CCmdUI* pCmdUI);    
  13.  
  14.     
  15.     
  16.     
  17.     CMYCALLDoc();
  18.     DECLARE_DYNCREATE(CMYCALLDoc)
  19.  
  20. // Attributes
  21. public:
  22.     CRPEngine m_crpeEngine;
  23.     BOOL m_outputToWindow; // flag indicating output to window was chosen on select event
  24.     BOOL m_outputToFile; // flag indicating output to file was chosen in select event
  25.     CListBox* m_listBox; // pointer to listbox object in view.  Needed for callback function to update display.
  26.                         // Also, it comes with selection bar which will make it easy to read event values on window.
  27.     int m_elementCount; // used for incrementing sequence number
  28.     CString m_statusString; // status bar string value, always updated with new commands
  29.  
  30.     int m_longestString; // used for setting the horizontal extent of clistbox
  31.     void ValInfotoString(CString& value, PEValueInfo* valInfo); // converting pevalueinfo type value to a string for output
  32.  
  33.     void CreateOutputString(CStringList& strList, short eventID, void* eventStruct, int seq); // creating output value based on a string.
  34.     CRPEJob* m_crpeJob; // job object that will be referenced.
  35.     ofstream m_fileOutput; // file output object.
  36.     
  37. // Operations
  38. public:
  39.  
  40. // Overrides
  41.     // ClassWizard generated virtual function overrides
  42.     //{{AFX_VIRTUAL(CMYCALLDoc)
  43.     public:
  44.     virtual BOOL OnNewDocument();
  45.     virtual void Serialize(CArchive& ar);
  46.     //}}AFX_VIRTUAL
  47.  
  48. // Implementation
  49. public:
  50.     virtual ~CMYCALLDoc();
  51. #ifdef _DEBUG
  52.     virtual void AssertValid() const;
  53.     virtual void Dump(CDumpContext& dc) const;
  54. #endif
  55.  
  56. protected:
  57.  
  58. // Generated message map functions
  59. protected:
  60.     //{{AFX_MSG(CMYCALLDoc)
  61.     afx_msg void OnOpenjob();
  62.     afx_msg void OnStart();
  63.     afx_msg void OnUpdateOpenjob(CCmdUI* pCmdUI);
  64.     afx_msg void OnUpdateStart(CCmdUI* pCmdUI);
  65.     afx_msg void OnCloseprintjob();
  66.     afx_msg void OnUpdateCloseprintjob(CCmdUI* pCmdUI);
  67.     afx_msg void OnLogontable();
  68.     afx_msg void OnUpdateLogontable(CCmdUI* pCmdUI);
  69.     afx_msg void OnLogonserver();
  70.     afx_msg void OnDiscardsaveddata();
  71.     afx_msg void OnUpdateDiscardsaveddata(CCmdUI* pCmdUI);
  72.     //}}AFX_MSG
  73.     DECLARE_MESSAGE_MAP()
  74. };
  75.  
  76. #endif
  77. /////////////////////////////////////////////////////////////////////////////
  78.